﻿package {
	import org.flixel.*;
	
	public class Ship extends FlxSprite
	{
        protected var _default_velocity:int;
		protected var _shield:int;
        protected var _bullets:FlxGroup;
        protected var _bullets_index:int;
        protected var _max_bullets:int;
		
		public function Ship(x:int, y:int) {
			super(x, y);
			_shield = 0;
            _default_velocity = 0;
            _bullets = new FlxGroup();
            _bullets_index = 0;
            _max_bullets = 0;
		}

        protected function shot():void {}

        public function setMaxBullets(m:int):void {
            _max_bullets = m;
        }

		public function upDefaultVelocity(v:int):void {
			_default_velocity += v;
		}
		
		public function downDefaultVelocity(v:int):void {
			_default_velocity -= v;
		}
		
		public function upHealth(v:int):void {
			health += v;
		}		

		public function downHealth(v:int):void {
			health -= v;
		}		
	}
}
